package valueObject
{
	import flash.utils.getDefinitionByName;

	/**
	 *皇上 
	 * @author SXT
	 */
	public class KingVO extends BaseVO implements IVO
	{
		/**
		 *当前血量 
		 */		
		public var cutHP:int
		/**
		 *总血量 
		 */
		public var hp:int;
		/**
		 *第二名字 
		 */
		public var name2:String;
		/**
		 *描述 
		 */
		public var describe:String;
		/**
		 *防御 
		 */
		public var defense:int;
		private var _local:Array;
		/**
		 *技能 
		 */		
		public var skill:int;
		
		public function KingVO()
		{
			super();
			cutHP = hp;
		}
		
		public function release():void
		{
		}
		
		public function set mcid(id:int):void{
			var _mcid:String = "k"+id;
			try{
				k60001;
//				var tmp:String = getQualifiedClassName(_mcid);
				var ClassReference:Class = getDefinitionByName(_mcid) as Class;
				mc = new ClassReference();
			}catch(e:Error){
				trace();
			}
			if(mc){
				addChild(mc);
//				initHpBar();
			}
		}

		/**
		 *位置 
		 */
		public function get local():Array
		{
			return _local;
		}

		/**
		 * @private
		 */
		public function set local(value:Array):void
		{
			_local = value;
		}

	}
}